package com.example.myapplication;

import android.util.Log;
import androidx.appcompat.app.AppCompatActivity;
import android.os.Bundle;

public class CycleActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_cycle);
        Log.d("CycleActivity","创建活动");
    }

    @Override
    protected void onRestart() {
        super.onRestart();
        Log.d("CycleActivity","重启活动");
    }

    @Override
    protected void onDestroy() {
        super.onDestroy();
        Log.d("CycleActivity","销毁活动");
    }

    @Override
    protected void onStop() {
        super.onStop();
        Log.d("CycleActivity","停止活动");
    }

    @Override
    protected void onPause() {
        super.onPause();
        Log.d("CycleActivity","暂停活动");
    }

    @Override
    protected void onStart() {
        super.onStart();
        Log.d("CycleActivity","开始活动");
    }

    @Override
    protected void onResume() {
        super.onResume();
        Log.d("CycleActivity","重新开始活动");
    }
}
